package com.loong.news.model;

import com.loong.common.mybatis.entity.BaseEntity;
import java.util.Date;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "news_comment")
public class NewsComment extends BaseEntity {
    @Column(name = "news_id")
    private Long newsId;

    @Column(name = "user_id")
    private Long userId;

    @Column(name = "comment_time")
    private Date commentTime;

    @Column(name = "like_num")
    private Long likeNum;

    @Column(name = "unlike_num")
    private Long unlikeNum;

    @Column(name = "parent_id")
    private Long parentId;

    @Column(name = "comment_content")
    private String commentContent;
}